//
//  AccountManageMapper.swift
//  rryproject
//
//  Created by zhengyi on 2018/1/16.
//  Copyright © 2018年 inesv. All rights reserved.
//

import UIKit
import ObjectMapper

class NodataResponse: Mappable {
    var code: Int?
    var message: String?
    var page: Int?
    var data: String?

    
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        code                <- map["code"]
        message             <- map["message"]
        page                <- map["page"]
        data             <- map["data"]
    }
}

class LoginResponse: Mappable {
    var code: Int?
    var message: String?
    var page: Int?
    var data: UserInfoData?
    
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        code                <- map["code"]
        message             <- map["message"]
        page                <- map["page"]
        data             <- map["data"]
    }
}

class AboutData: Mappable {
    var context: String?
    var id: Int?
    
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        context        <- map["context"]
        id             <- map["id"]
    }
}

class AboutResponse: Mappable {
    var code: Int?
    var message: String?
    var page: Int?
    var data: AboutData?
    
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        code                <- map["code"]
        message             <- map["message"]
        page                <- map["page"]
        data             <- map["data"]
    }
}

class HadSetTradePwdResponse: Mappable {
    var code: Int?
    var message: String?
    var page: Int?
    var data: TradePwdFlag?
    
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        code                <- map["code"]
        message             <- map["message"]
        page                <- map["page"]
        data             <- map["data"]
    }
}

class TradePwdFlag: Mappable {
    var flag: Int?
    
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        flag                <- map["flag"]
    }
}

class UserInfoData: Mappable {
    var price: NSNumber?
    var userWalletList: [WalletAddress]?
    var photo: String?
    var username: String?
    var token: String?

    
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        price                <- map["price"]
        photo             <- map["photo"]
        userWalletList                <- map["userWalletList"]
        username             <- map["username"]
        token                <- map["token"]
    }
}

class UserWallet: Mappable {
    var code: Int?
    var message: String?
    var page: Int?
    
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        code                <- map["code"]
        message             <- map["message"]
    }
}


